package cn.com.yang.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import cn.com.yang.service.UserService;

/**
 * @Author 杨亿金
 * @Date 2022/3/15 21:05
 * @CopyRight
 * @Version
 */
@Configuration
public class AppConfig {
    @Bean(name="userService")
    public UserService userService(){
        UserService service = new UserService();
        service.setName("liu Yang");
        service.setSex("男");
        return service;
    }
}
